<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function my_click(){
            alert('micah真帅2')
        }
    </script>
    <script src="./js/demo.js"></script>
</head>
<body>
  <!--  1.行内式-->
  <input type="button" value="micah" onclick="alert('micah真帅')">
  <!-- 2.内嵌式 -->
  <input type="button" value="micah2" onclick="my_click()">
    <!-- 2.内嵌式 -->
  <input type="button" value="micah3" onclick="import_my_click()">

</body>
</html>